package com.kuiandjie.service;

import java.util.List;

import com.kuiandjie.dao.IdeaDao;
import com.kuiandjie.entity.Idea;

public class IdeaService {
	private IdeaDao dao = new IdeaDao();
	
	public List<Idea> findIdeaByProId(int id) {
		return dao.findAllByProjectId(id);
	}

	public int insertIdea(Idea i) {
		return dao.insertIdea(i);
	}

	public Idea findIdeaById(int id) {
		return dao.findIdeaById(id);
	}

	public void updateIdea(Idea i) {
		dao.updateIdea(i);
	}
}
